a=100

def calc(x,y):
    return a+x+y

print(a)
print(calc(10,20))

def calc2(x,y):
    global s # s此时会变成全局变量
    s=300
    return s+x+y
print(calc2(10,20))
print(s)
